import React, { Component } from 'react'

export default class ReadOnly extends Component {
  render() {
    return (
      <div>
        <h2>{this.props.message}</h2>
        {
            this.props.telephoys.map((item,index)=><span key={index}>{item}、</span>)
        }
        <br/>
        <button onClick={()=>{
            // this.props.message="你好Vue"
            //this.props.telephoys=['vue基础知识','路由','vuex']
            this.props.telephoys[2]="vue路由"
            this.forceUpdate()
        }}>更改</button>
      </div>
    )
  }
}
